﻿#!/bin/env python
#-*- coding:utf-8 -*-

import random

#realNum = random.randrange(100)

realNum = 15
retryCount = 0
while retryCount < 3:
	guessNum = raw_input("请输入一个整数:").strip()
	if len(guessNum) == 0:
		print "请输入一个整数!"
	elif guessNum.isdigit() :
		guessNum = int(guessNum)
		if guessNum > realNum:
			print "请输入一个较小的整数!"
		elif guessNum < realNum:
			print "	请输入一个较大的整数!"
		else:
			print "Great!It's right!"
			break
	else:
		print "请输入一个整型数字!"
	    retryCount += 1

else:
	print "你输入的次数已超过三次!程序即将退出!"
